var gulp = require('gulp'); //本地安装gulp所用到的地方
var rename = require("gulp-rename");
gulp.task('bundle', function() {
    gulp.src('src/index.js') //该任务针对的文件
        .pipe(rename({
            basename: 'kdraw',
            suffix: '.min',
            extname: '.js'
        }))
        .pipe(gulp.dest('dist')); //将会在src/css下生成index.css
});

gulp.task('default', ['bundle']);